<?php
	class MediaTest extends PHPUnit_Framework_TestCase
	{
		protected $_media;
		protected $_config;

		protected function setUp() 
		{ 
			$this->_media = new Media();
			$this->_config = Zend_Registry::get('config');
		}
		
		protected function tearDown() 
		{ 
			unset($this->_media);
			unset($this->_config);
		}

		public function testDomain()
		{
			$this->assertEquals($this->_media->getDomain(), $this->_config->domain->name->media);
		}
		
		public function testBucket()
		{
			$this->assertEquals($this->_media->getBucket(), $this->_config->bucket->name->media);
		}
	}
